package com.lh.factory.simplefactory.pizzastore.pizza;



//将Pizza 类做成抽象类
public abstract class Pizza {


	//名字
	protected String name;

	//原材料（不同的披萨，不一样的原材料）,做成抽象方法，自定义实现
	public abstract void prepare();

	//烘烤
	public void bake() {
		System.out.println(name + "baking");
	}

	//切割
	public void cut() {
		System.out.println(name + "cuting");
	}


	//打包
	public void box() {
		System.out.println(name + "boxing");
	}

	public void setName(String name) {
		this.name = name;
	}

}
